package com.jash.labor.context;

import java.io.Serializable;

/**
 * @author yuqinglei
 * @date 2018/4/25.
 * <p>
 * 描述：
 */
public class ApiException extends RuntimeException implements Serializable {

    private static final long serialVersionUID = 8727948733787863199L;

    private ErrorResult resultCode;

    public ApiException(ErrorResult resultCode) {
        this.resultCode = resultCode;
    }


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public ErrorResult getResultCode() {
        return resultCode;
    }

    public void setResultCode(ErrorResult resultCode) {
        this.resultCode = resultCode;
    }

    @Override
    public synchronized Throwable fillInStackTrace() {
        // 不在复制栈信息，提升性能
        return this;
    }

}
